import request from '@/utils/request'

// 查询报分组列表
export function listReportGroup(query) {
  return request({
    url: '/reportGroup/list',
    method: 'get',
    params: query
  })
}

// 查询报分组详细
export function getReportGroup(id) {
  return request({
    url: '/reportGroup/' + id,
    method: 'get'
  })
}

// 新增报分组
export function addReportGroup(data) {
  return request({
    url: '/reportGroup',
    method: 'post',
    data: data
  })
}

// 修改报分组
export function updateReportGroup(data) {
  return request({
    url: '/reportGroup',
    method: 'put',
    data: data
  })
}

// 删除报分组
export function delReportGroup(id) {
  return request({
    url: '/reportGroup/' + id,
    method: 'delete'
  })
}

// 导出报分组
export function exportReportGroup(query) {
  return request({
    url: '/reportGroup/export',
    method: 'get',
    params: query
  })
}
